package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    void add(Role role, Integer[] menuIds, Integer[] permissionIds);

    void del(Integer[] ids);

    void update(Role role,Integer[] menuIds, Integer[] permissionIds);

    Role find(Integer id);

    PageResult findPage(QueryPageBean queryPageBean);

    List<Role> findAll();

    List<Integer> findRolesIdsByUserId(Integer id);

}
